package com.agh.portal.data;

import java.text.SimpleDateFormat;
import java.util.Date;


public class DataComponent {
	Date date;
	Date convertedDate;
	String displayTime = "";
	
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		if(date == null) return;
		this.date = date;
		displayTime = new SimpleDateFormat("dd/MM/yy HH:mm").format(date);
	}
	public Date getConvertedDate() {
		return convertedDate;
	}
	public void setConvertedDate(Date convertedDate) {
		this.convertedDate = convertedDate;
	}
	public String getDisplayTime() {
		return displayTime;
	}
	public void setDisplayTime(String displayTime) {
		this.displayTime = displayTime;
	}
	
}
